Ref the cursor in the cached case.
authorRichard Hult <richard@imendio.com>
Wed, 18 Jul 2007 09:52:25 +0000 (09:52 +0000)
committerRichard Hult <rhult@src.gnome.org>
Wed, 18 Jul 2007 09:52:25 +0000 (09:52 +0000)
2007-07-18  Richard Hult  <richard@imendio.com>

* gdk/quartz/gdkcursor-quartz.c (gdk_cursor_new_for_display): Ref
the cursor in the cached case.

svn path=/trunk/; revision=18490

ChangeLog
gdk/quartz/gdkcursor-quartz.c

index bbd2a8dc6890500971ebb23b73243ef504dad8f6..64a4b9d81749a2ede8c3f47dc41c041381c8e8a2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-07-18  Richard Hult  <richard@imendio.com>
+
+       * gdk/quartz/gdkcursor-quartz.c (gdk_cursor_new_for_display): Ref
+       the cursor in the cached case.
+
 2007-07-18  Matthias Clasen  <mclasen@redhat.com>
 
        * gtk/gtktreeview.c: Correct some mistakes in the 
index 9e39b1df7453d484dce558ab787174364d90cfff..fa4eabed91c7c086b2c4190a4da505d55b4b3f37 100644 (file)
@@ -211,7 +211,7 @@ gdk_cursor_new_for_display (GdkDisplay    *display,
       nscursor = [NSCursor pointingHandCursor];
       break;
     default:
-      return create_builtin_cursor (cursor_type);
+      return gdk_cursor_ref (create_builtin_cursor (cursor_type));
     }
 
   [nscursor retain];